﻿//Create By Leven
//Copyright 2008 LevenStudio
//http://leven.com.cn/
//For LevenBlog2.0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace LevenBlog.Core.Entities
{
    /// <summary>
    ///表lb_blog
    /// </summary>
    [Serializable]
    [DataContract(Name = "blog")]
    [Table("lb_blog", Info = "")]
    public class lb_blog : lb_simpleblog
    {
        [DataMember]
        [Column("content", DataType.Text, CanNull = false)]
        public string content { get; set; }

        [DataMember]
        [Column("isedit", DataType.Bit, CanNull = false)]
        public bool isedit { get; set; }

        [DataMember]
        [Column("edituser", DataType.VarChar, Length = 100)]
        public string edituser { get; set; }

        [DataMember]
        [Column("edittime", DataType.DateTime, CanNull = false)]
        public DateTime edittime { get; set; }

        [DataMember]
        [Column("come", DataType.VarChar, Length = 510)]
        public string come { get; set; }

        [DataMember]
        [Column("comeurl", DataType.VarChar, Length = 510)]
        public string comeurl { get; set; }

        [DataMember]
        [Column("mails", DataType.Text)]
        public string mails { get; set; }

        public lb_blog()
        {
            this.Category = null;
            this.categoryid = -1;
            this.commentnum = 0;
            this.content = string.Empty;
            this.edittime = DateTime.Now;
            this.edituser = string.Empty;
            this.hits = 0;
            this.id = -1;
            this.intro = string.Empty;
            this.isedit = false;
            this.islock = false;
            this.isshow = true;
            this.istop = false;
            this.posttime = DateTime.Now;
            this.postuser = string.Empty;
            this.tags = string.Empty;
            this.title = string.Empty;
            this.tracknum = 0;
            this.come = "本站原创";
            this.comeurl = string.Empty;
            this.tagmaps = new List<lb_tagmap>();
            this.mails = string.Empty;
        }

    }
}

